Add NDJSON events to init-derived#47
Merged
Merged
Conversation
Extend init-derived with JSON and NDJSON output so automation can observe derived table materialization progress. Emit per-table derived events from the materializer and cover list/materialization output in CLI tests. Behavioral implication: init-derived now accepts --json and --events ndjson; existing human-readable output remains unchanged.
Update the package __version__ value for the next patch release and make the MCP set_dataset snapshot test pin DuckDB in its isolated environment. Behavioral impact: runtime behavior is unchanged beyond reporting version 0.5.1; the test setup now matches the client backend resolution path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--jsonand--events ndjsonsupport tom4 init-derivedTests
uv run pytest tests/core/derived/test_cli.py tests/test_cli.py -quv run ruff check src/m4/cli.py src/m4/core/derived/materializer.py tests/core/derived/test_cli.pyuv run ruff format --check src/m4/cli.py src/m4/core/derived/materializer.py tests/core/derived/test_cli.pygit diff --checkNote: the pre-commit full pytest hook was run during commit and failed on
tests/test_mcp_server.py::TestModalityChecking::test_set_dataset_returns_supported_tools_snapshotbecause the environment reported BigQuery instead of DuckDB. The focused tests for this change passed.